package cn.kp.learning.dao;

import cn.kp.learning.model.People;
import cn.kp.learning.model.PeopleExample;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PeopleDao {
    int countByExample(PeopleExample example);

    int deleteByExample(PeopleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(People record);

    int insertSelective(People record);

    List<People> selectByExample(PeopleExample example);

    People selectByPrimaryKey(Integer id);

    People selectPeople(PeopleExample example);

    List<People> selectPeopleList(PeopleExample example);
    
    People selectPeopleLogin(HashMap<String,Object> hm);
    
    int updateByExampleSelective(@Param("record") People record, @Param("example") PeopleExample example);

    int updateByExample(@Param("record") People record, @Param("example") PeopleExample example);

    int updateByPrimaryKeySelective(People record);

    int updateByPrimaryKey(People record);
}